@charset "UTF-8";

/*
 Standard Style Sheet
 
 CotEditor
 https://coteditor.com
 
 © 2006-2025 CotEditor Project
*/

@import "common.css";

em:lang(ja) {
	font-weight: 650;
	font-style: normal;
}
kbd {
	font-family: inherit;
}
pre, code {
	font-family: 'SF Mono', monospace;
	font-size: 95%;
}

img {
	max-width: 100%;
}

body > h1 {
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.2;
	margin: 2.5rem 0 1.4rem;
	
	display: flex;
	align-items: flex-start;
	gap: 15px;
}
body > h1::before {
	content: image-set(url(../gfx/icon_32x32@2x.png) 2x);
	display: inline-block;
	width: 32px;
	height: 32px;
	position: relative;
	top: 4px;
}
h2 {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}
body > section:not(#cf), article {
	margin: 2rem 0 1rem;
	padding-top: 0.25rem;
	border-top: 1px solid -apple-system-separator;
	clear: both;
}
h3 {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.1;
	margin-top: 2rem;
}
h4 {
	margin-bottom: 0;
}
h4 + * {
	margin-top: 0;
}

p + p {
	margin-top: 1em;
}

p:lang(ja) {
	text-align: justify;
}

figure {
	margin: 0;
}

ol,
ul,
pre {
	margin: 1rem 0;
	padding: 0 1.5rem;
	clear: both;
}

ul {
	list-style-type: disc;
}

li {
	margin-bottom: 1rem;
}

ul ul,
ul ol {
	padding: 0 3rem;
	margin: 0.5rem 0;
	border: none;
}

table ul li {
	margin-bottom: 0.2em;
}

.na {
	color: -apple-system-tertiary-label;
}
p.addition {
	position: relative;
	text-indent: 0;
	padding: 0.8rem 1.2rem;
	border-radius: 0.8rem;
	background: hsl(213, 50%, 97%);
}
p.addition::after {
	content: '';
	position: absolute;
	top: -1.8rem;
	left: 4rem;
	margin-left: -1rem;
	border: 1rem solid transparent;
	border-bottom: 15px solid hsl(203, 50%, 97%);
}
p.addition > span:first-child {
	color: hsl(203, 25%, 55%);
}
@media (prefers-color-scheme: dark) {
	p.addition {
		background: hsl(203, 30%, 20%);
	}
	p.addition::after {
		border-bottom-color: hsl(203, 30%, 20%);
	}
}

a.toc::before {
	display: inline-block;
	content: url(../gfx/toc_secondary.svg);
	vertical-align: -1px;
	padding-right: 0.3rem;
}
a.toc {
	font-size: 15px;
	font-weight: 400;
	position: absolute;
	top: 5px;
	color: -apple-system-secondary-label;
}
@media (prefers-color-scheme: dark) {
	a.toc::before {
		content: url(../gfx/toc_secondary-dark.svg);
	}
}

img.appicon {
	vertical-align: text-bottom;
	height: 18px;
}
img.appicon:lang(ja) {
	padding: 0 0.1em;
}

img.bordered {
	border: 0.5px solid -apple-system-tertiary-label;
	border-radius: 3px;
}
object.symbol {
	vertical-align: -0.1em;
}
object.symbol:lang(ja) {
	padding: 0 0.2em;
}

dt {
	font-weight: 600;
}
dd {
	margin-left: 2rem;
}
dd + dt {
	margin-top: 0.5rem;
}
dd + dd dl {
	margin-top: 0.5rem;
}
dd p {
	margin: 0;
}

table {
	font-size: 100%;
	border-collapse: collapse;
	empty-cells: show;
	margin: 1rem 0;
}
table caption {
	font-weight: 500;
	text-align: left;
	margin: 0.4rem 0;
}
th,
td {
	line-height: 1.6;
	border-bottom: 1px solid -apple-system-quaternary-label;
	margin: 0;
	padding: 0.5rem 0.6rem;
}
table tr > :first-child {
	padding-left: 0;
}
table tr > :last-child {
	padding-right: 0;
}
table thead tr th {
	font-weight: 650;
	text-align: left;
}
table thead tr:first-child > * {
	border-top: 2.5px solid -apple-system-quaternary-label;
}
th {
	font-weight: normal;
	white-space: nowrap;
}
tbody th:first-child {
	text-align: left;
	vertical-align: top;
}
td > :last-child {
	margin-bottom: 0;
}


/* Syntax highlight */

span.invisible {
	opacity: 0.4;
}

pre.source {
	background: hsl(0, 0%, 98%);
	border: 1px solid -apple-system-separator;
	border-radius: 0.5rem;
	max-width: 50rem;
	padding: 0.4rem 0.8rem;
	overflow: scroll;
}

code.AppleScript {
	color: hsl(230, 67%, 45%);
}
code span.keyword   { color: #1b556b; font-weight: bold }
code span.tag       { color: #1b556b }
code span.command   { color: #947231 }
code span.type      { color: #ae3d16 }
code span.attribute { color: #862753 }
code span.variable  { color: #348986; font-style: italic; }
code span.value     { color: #b22729 }
code span.string    { color: #526e2a }
code span.comment   { color: #66747a }

@media (prefers-color-scheme: dark) {
	pre.source {
		background: hsl(0, 0%, 10%);
	}
	code.AppleScript {
		color: hsl(230, 50%, 60%);
	}
	code span.keyword   { color: #5199b3 }
	code span.tag       { color: #5199b3 }
	code span.command   { color: #d4a046 }
	code span.type      { color: #ed734c }
	code span.attribute { color: #c76090 }
	code span.variable  { color: #75c9c6 }
	code span.value     { color: #f26669 }
	code span.string    { color: #90ad65 }
	code span.comment   { color: #808080 }
}


/* See also */

#cf {
	margin-top: 3rem;
}
#cf > * {
	margin: 0;
}
#cf ul {
	list-style-type: none;
	padding: 0;
}
#cf li {
	margin: 0.4rem 0;
}


/* Settings */

table.settings tbody th {
	width: 30%;
	white-space: normal;
}
table.settings tbody {
	font-size: 95%;
}
table.settings td dl > * {
	margin-left: 0;
}
